package com.ruoyi.notice.mapper;

import com.ruoyi.notice.domain.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {
    int insertMessage(Message message);

    void deleteMessageByNoticeId(Long noticeId);

    List<Message> getMessagesByUserId(Long userId);


    void deleteMessageByHid(@Param("hid") String hid);

    void updateMessageByHid(Message message);

    void deleteRescueMessageByHid(@Param("hid") String hid);
}
